﻿Public Class LiveProgramListViewStyleSelector
    Inherits StyleSelector

    Public Overrides Function SelectStyle(ByVal item As Object, ByVal container As System.Windows.DependencyObject) As System.Windows.Style

   
        Dim f = DirectCast(container, FrameworkElement)
        Return DirectCast(f.FindResource("StretchListViewItem"), Style)

        'Dim program = DirectCast(item, LiveProgram)
        'Dim f = DirectCast(container, FrameworkElement)
        'If program.CommentCount Mod 2 = 0 Then
        '    Return DirectCast(f.FindResource("TestStyle"), Style)
        'Else
        '    Return DirectCast(f.FindResource("StretchListViewItem"), Style)
        'End If

    End Function
End Class
